<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡效果</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid red;
            margin-top: 10px;
        }
        #d1{
            width: 100px;
            height: 100px;
            background-color: orange;
            transition: all 3s 2s;
        }
        #d1:hover{
            width: 800px;
            height: 300px;
        }
        #d2{
            width: 100px;
            height: 100px;
            background-color: orange;
            transition: all 3s 2s ease;
        }
        #d2:hover{
            width: 800px;
            height: 300px;
        }
        #d3{
            width: 100px;
            height: 100px;
            background-color: orange;
            transition: all 3s 2s ease-in;
        }
        #d3:hover{
            width: 800px;
            height: 300px;
        }
        #d4{
            width: 100px;
            height: 100px;
            background-color: orange;
            transition: all 3s 2s ease-in-out;
        }
        #d4:hover{
            width: 800px;
            height: 300px;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <div id="d2"></div>
    <div id="d3"></div>
    <div id="d4"></div>
</body>
</html>